﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Login
/// </summary>
public class Login
{
    AccountDAO accDao = new AccountDAO();
    public account currAcc { get; set; }

	public Login()
	{
		
	}
    public account login(String username, String password) {
        account acc = accDao.readByUserName(username);
        if(acc != null){
            return acc;
        }
        return null;
    }
}